
import React, {Component} from 'react';
import {
  View,
  Text,
  TouchableWithoutFeedback,
  NativeModules,
} from 'react-native';

import * as actionTypes from './app/constance/Constance';
import Navigator from './app/components/stackNavigator';

//RN与原生iOS的交互：
var RNManager = NativeModules.UEManager;
var splashManager = NativeModules.SplashScreens;
export default class App extends Component{

  componentDidMount(){
    splashManager.hide();
    if (actionTypes.PLATFORM_isIOS){
      RNManager.requestLocation();
    }
  }
  render() {
    return (
          <View style={{height:actionTypes.SCREEN_HEIGHT}}>
              <Navigator/>
          </View>
    );
  }
}
